//:C03:typesize.c --输出简单类型大小.
#include <stdio.h>
int main(void)
{
 /*C99为类型大小提供一个%zd说明符*/   
    printf("Type int has a size of %u byes.\n", sizeof(int));
    printf("Type char has a size of %u byes.\n", sizeof(char));
    printf("Type long has a size of %u byes.\n", sizeof(long));
    printf("Type double has a size of %u byes.\n", sizeof(double));
}   